package com.visionet.waveletData.web.vo.account;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.google.common.collect.Lists;
import com.visionet.waveletData.web.vo.BaseVo;

/**
 * 角色.
 * 
 * @author xt
 */
public class ResourceVo extends BaseVo {

	private String name;
	private String hyperlink;
    private String oldlink;
	private Integer type;
	private Float position;
	private Date createDate;
	private String permission;
	private String permissionView;
	private String permissionEdit;
	
	private List<Map<String,String>> menuList = Lists.newArrayList();
	

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getHyperlink() {
		return hyperlink;
	}

	public void setHyperlink(String hyperlink) {
		this.hyperlink = hyperlink;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Float getPosition() {
		return position;
	}

	public void setPosition(Float position) {
		this.position = position;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

    public String getOldlink() {
        return oldlink;
    }

    public void setOldlink(String oldlink) {
        this.oldlink = oldlink;
    }

    public List<Map<String,String>> getMenuList() {
		return menuList;
	}

	public void setMenuList(List<Map<String,String>> menuList) {
		this.menuList = menuList;
	}
	
	

	public String getPermissionView() {
		return permission+":view";
	}

	public String getPermissionEdit() {
		return permission+":edit";
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
